package com.example.dishfo.myapplication.util;

import android.widget.TextView;

public final class TextUtil {
    public static String textClip(TextView textView,String str){
        return null;
    }

    private final static String[] NUMER_MAPPER={"零","一","二","三","四"
    ,"五","六","七","八","九","十","百","千","万","亿"};
    /**将阿拉伯数字转化为汉字
     * @param num must bigger zero
     * @return chinese numer
     */
    public static String getChineseNumber(int num){
        int m=0;
        int v=0;
        int n=num;
        int t=9;

        StringBuilder builder=new StringBuilder();
        builder.append(NUMER_MAPPER[num]);

//        while (n!=0){
//            m=n%10;
//            n/=10;
//
//            if(m==0&&builder.charAt(builder.length()-1)=='零'){
//                t++;
//                continue;
//            }
//
//            if(t<10){
//
//            }else if (t==10){
//                if()
//            }else {
//
//            }
//            t++;
//        }

        return builder.reverse().toString();
    }
}
